<template>
   <view class="components-container">
       <h-card title="地图功能">
           <view class="item" v-for="(item,index) in list" :key="item.id" @click="goTo(item.path)">
			   {{index+1}}、{{item.name}}
		   </view>
       </h-card>
   </view>
</template>

<script>
    export default {
        name: "index",
		data: () => {
			return {
				list:[
                    { id:1,name:'获取坐标', path:'/pages_sub1/map/map1/index'},
                    { id:2,name:'地图签到', path:'/pages_sub1/map/map2/index'}
                ]
			}
		},
        onLoad(){
            let _ = this
        },
        methods: {
            goTo(val){
                console.log('goTo')
                uni.$u.route(val)
            }
        }

    }
</script>

<style lang="scss" scope>
@import 'index.scss';
</style>
